<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Add productDigiFunc</title>
<script>
	$(document).ready(function(){
	    $("table tbody tr:even").addClass("tdbgcolor1"); 
	    $("table tbody tr:odd").addClass("tdbgcolor2"); 
	});
</script>
</head>
<body>
<script>
	function checkAndSubmit(){
		var form = document.getElementById("addProductDigiFuncForm");
		var id = document.getElementById("productDigiFuncId");
		if (id.value ==""){
			document.getElementById("productDigiFuncId").value = "-1";
		}else 
			form.action="updateProductDigiFunc.action";
		form.submit();
	}
</script>
<div align="center">数据应用功能</div>
<form method="post" action="addProductDigiFunc.action" id="addProductDigiFuncForm">
<table width="80%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"  align="center" >
	<tr>
		<td>蓝牙:</td>
		<td><input type="text" name="bluetooth" id="bluetooth"  value="<s:property value='productDigiFunc.bluetooth'/>" /></td>
	</tr>
	<tr>
		<td>数据业务:</td>
		<td><input type="text" name="dataService" id="dataService" value="<s:property value='productDigiFunc.dataService'/>" /></td>
	</tr>
	<tr>
		<td>JAVA:</td>
		<td><input type="text" name="javafunctions" id="javafunctions" value="<s:property value='productDigiFunc.javafunctions'/>" /></td>
	</tr>
	<tr>
		<td>WWW浏览器:</td>
		<td><input type="text" name="www" id="www" value="<s:property value='productDigiFunc.www'/>" /></td>
	</tr>
	<tr>
		<td>数据线:</td>
		<td><input type="text" name="dataline" id="dataline" value="<s:property value='productDigiFunc.dataline'/>" /></td>
	</tr>
	<tr>
		<td>WiFi(WLAN):</td>
		<td><input type="text" name="wifiwlan" id="wifiwlan" value="<s:property value='productDigiFunc.wifiwlan'/>" /></td>
	</tr>
	<tr>
		<td>扩展卡:</td>
		<td><input type="text" name="extendsCard" id="extendsCard" value="<s:property value='productDigiFunc.extendsCard'/>" /></td>
	</tr>
	<tr>
		<td>GPS定位系统:</td>
		<td><input type="text" name="gpsDetail" id="gpsDetail" value="<s:property value='productDigiFunc.gpsDetail'/>" /></td>
	</tr>
	<tr>
		<td>WAP上网:</td>
		<td><input type="text" name="wap" id="wap" value="<s:property value='productDigiFunc.wap'/>" /></td>
	</tr>
	<tr>
		<td>其他数据功能:</td>
		<td><input type="text" name="otherdigit" id="otherdigit" value="<s:property value='productDigiFunc.otherdigit'/>" /></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="hidden" value="<s:property value='langId'/>" name="langId" id="langId"/>
			<input type="hidden" value="<s:property value='productId'/>" name="productId" id="productId"/>
			<input type="hidden" value="<s:property value='productDigiFunc.id'/>" name="productDigiFuncId" id="productDigiFuncId"/>
			<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
			<input	type="button" value="reset" />&nbsp;
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
		</td>
</table>
</form>
</body>
</html>
